package com.baosight.risk.mapper.xtzy;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.xtzy.entity.XtzyCompUser;
import com.baosight.risk.service.xtzy.vo.XtzyCompUserVO;
import com.baosight.risk.service.xtzy.vo.XtzyUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XtzyCompUserMapper extends BaseMapper<XtzyCompUser> {

    List<XtzyUserVO> getUserByCompId(@Param("compId") String compId, @Param("userDesc") String userDesc, @Param("userCode") String userCode);

    XtzyCompUser getUserByCompIdAndUser(@Param("compId") String compId, @Param("userCode") String userCode);

    Integer deleteByCompIdAndUserId(@Param("compId") String compId, @Param("userId") String userId);

    List<XtzyCompUserVO>selectCompUserList(@Param("compCode") String compCode, @Param("userCode") String userCode);

}